#include "stdio.h"
#include "string.h"

int main(){
    int n=0;
    int size=0;
    int count=0;
    int chushu=100;
    scanf("%d",&n);
    int baiwei = n/100;
    n=n%100;
    int shiwei = n/10;
    n = n%10;
    int gewei = n/1;
    for (int i = 0; i < baiwei; ++i) {
        printf("B");
    }
    for (int i = 0; i < shiwei; ++i) {
        printf("S");
    }
    for (int i = 1; i <= gewei; ++i) {
        printf("%d",i);
    }
    return 0;
}